home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 14.7 KB | 486 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLFileAc.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- /*
- *
- *
- * File: SLFileAc.idl
- * Release Version: $ ODF 1 $
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- *
- */
-
-
- #ifndef SOM_FW_OFileSink_xih
- #define SOM_FW_OFileSink_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
-
-
- #ifndef SOM_FW_OFileSink_xh
- #include <SLFileAc.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OFileSink_MaxNoMethods 2
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
- typedef struct FW_OFileSinkData {
- FW_OFile* fRep;
- } FW_OFileSinkData;
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- /*
- * -- Getdata Macro
- */
-
- /*
- * -- This emitter treats Data Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to override this default.
- */
- SOMEXTERN typedef FW_OFileSinkData* (* SOMLINK somTD_FW_OFileSink_DataThunk)(void*);
- #define FW_OFileSinkGetData(somSelf) \
- (((somTD_FW_OFileSink_DataThunk)(FW_OFileSinkClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fRep (somThis->fRep)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OFileSinkMethodDebug
- #define FW_OFileSinkMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _GetLength somSelf->GetLength
- #define _SetLength somSelf->SetLength
- #define _GetPosition somSelf->GetPosition
- #define _SetPosition somSelf->SetPosition
- #define _GetReadableBytes somSelf->GetReadableBytes
- #define _GetReadableBytes somSelf->GetReadableBytes
- #define _Read somSelf->Read
- #define _GetWritableBytes somSelf->GetWritableBytes
- #define _Write somSelf->Write
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _InitFromOFile somSelf->InitFromOFile
- #define _GetOFileRep somSelf->GetOFileRep
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _Read somSelf->Read
- #define _GetWritableBytes somSelf->GetWritableBytes
- #define _Write somSelf->Write
- #define _GetLength somSelf->GetLength
- #define _SetLength somSelf->SetLength
- #define _GetPosition somSelf->GetPosition
- #define _SetPosition somSelf->SetPosition
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: InitFromOFile */
- SOM_Scope void SOMLINK FW_OFileSink__InitFromOFile(FW_OFileSink *somSelf, Environment *ev,
- FW_OFile* theFile);
-
- /* New Method: GetOFileRep */
- SOM_Scope FW_OFile* SOMLINK FW_OFileSink__GetOFileRep(FW_OFileSink *somSelf, Environment *ev);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK FW_OFileSink__somInit(FW_OFileSink *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFileSink_somInit)(FW_OFileSink *somSelf);
- inline void SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_somInit(FW_OFileSink *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OFileSink_parents_somInit(arg0) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK FW_OFileSink__somUninit(FW_OFileSink *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFileSink_somUninit)(FW_OFileSink *somSelf);
- inline void SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_somUninit(FW_OFileSink *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OFileSink_parents_somUninit(arg0) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_somUninit(arg0)
-
- /* Overridden method: Read */
- SOM_Scope void SOMLINK FW_OFileSink__Read(FW_OFileSink *somSelf, Environment *ev,
- void* destination,
- long count);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFileSink_Read)(FW_OFileSink *somSelf, Environment *ev,
- void* destination,
- long count);
- inline void SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_Read(FW_OFileSink *somSelf, Environment *ev,
- void* destination,
- long count)
- {
- ((somTD_xih_FW_OFileSink_Read)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_OSinkClassData.Read))
- (somSelf,ev,destination,count);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OFileSink_parents_Read(arg0,arg1,arg2,arg3) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_Read(arg0,arg1,arg2,arg3)
-
- /* Overridden method: GetWritableBytes */
- SOM_Scope long SOMLINK FW_OFileSink__GetWritableBytes(FW_OFileSink *somSelf, Environment *ev);
- SOMEXTERN typedef long (* SOMLINK somTD_xih_FW_OFileSink_GetWritableBytes)(FW_OFileSink *somSelf, Environment *ev);
- inline long SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_GetWritableBytes(FW_OFileSink *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- long __somRetVal = ((somTD_xih_FW_OFileSink_GetWritableBytes)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_OSinkClassData.GetWritableBytes))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OFileSink_GetWritableBytes)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_OSinkClassData.GetWritableBytes))
- (somSelf,ev);
- #endif
- }
- #define FW_OFileSink_parents_GetWritableBytes(arg0,arg1) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_GetWritableBytes(arg0,arg1)
-
- /* Overridden method: Write */
- SOM_Scope void SOMLINK FW_OFileSink__Write(FW_OFileSink *somSelf, Environment *ev,
- void* source,
- long count);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFileSink_Write)(FW_OFileSink *somSelf, Environment *ev,
- void* source,
- long count);
- inline void SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_Write(FW_OFileSink *somSelf, Environment *ev,
- void* source,
- long count)
- {
- ((somTD_xih_FW_OFileSink_Write)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_OSinkClassData.Write))
- (somSelf,ev,source,count);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OFileSink_parents_Write(arg0,arg1,arg2,arg3) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_Write(arg0,arg1,arg2,arg3)
-
- /* Overridden method: GetLength */
- SOM_Scope long SOMLINK FW_OFileSink__GetLength(FW_OFileSink *somSelf, Environment *ev);
- SOMEXTERN typedef long (* SOMLINK somTD_xih_FW_OFileSink_GetLength)(FW_OFileSink *somSelf, Environment *ev);
- inline long SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_GetLength(FW_OFileSink *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- long __somRetVal = ((somTD_xih_FW_OFileSink_GetLength)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_ORandomAccessSinkClassData.GetLength))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OFileSink_GetLength)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_ORandomAccessSinkClassData.GetLength))
- (somSelf,ev);
- #endif
- }
- #define FW_OFileSink_parents_GetLength(arg0,arg1) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_GetLength(arg0,arg1)
-
- /* Overridden method: SetLength */
- SOM_Scope void SOMLINK FW_OFileSink__SetLength(FW_OFileSink *somSelf, Environment *ev,
- long length);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFileSink_SetLength)(FW_OFileSink *somSelf, Environment *ev,
- long length);
- inline void SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_SetLength(FW_OFileSink *somSelf, Environment *ev,
- long length)
- {
- ((somTD_xih_FW_OFileSink_SetLength)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_ORandomAccessSinkClassData.SetLength))
- (somSelf,ev,length);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OFileSink_parents_SetLength(arg0,arg1,arg2) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_SetLength(arg0,arg1,arg2)
-
- /* Overridden method: GetPosition */
- SOM_Scope long SOMLINK FW_OFileSink__GetPosition(FW_OFileSink *somSelf, Environment *ev);
- SOMEXTERN typedef long (* SOMLINK somTD_xih_FW_OFileSink_GetPosition)(FW_OFileSink *somSelf, Environment *ev);
- inline long SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_GetPosition(FW_OFileSink *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- long __somRetVal = ((somTD_xih_FW_OFileSink_GetPosition)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_ORandomAccessSinkClassData.GetPosition))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OFileSink_GetPosition)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_ORandomAccessSinkClassData.GetPosition))
- (somSelf,ev);
- #endif
- }
- #define FW_OFileSink_parents_GetPosition(arg0,arg1) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_GetPosition(arg0,arg1)
-
- /* Overridden method: SetPosition */
- SOM_Scope void SOMLINK FW_OFileSink__SetPosition(FW_OFileSink *somSelf, Environment *ev,
- long position);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFileSink_SetPosition)(FW_OFileSink *somSelf, Environment *ev,
- long position);
- inline void SOMLINK FW_OFileSink_parent_FW_ORandomAccessSink_SetPosition(FW_OFileSink *somSelf, Environment *ev,
- long position)
- {
- ((somTD_xih_FW_OFileSink_SetPosition)
- somParentNumResolve((somClassDataStructure*)&FW_OFileSinkClassData, 1, FW_ORandomAccessSinkClassData.SetPosition))
- (somSelf,ev,position);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OFileSink_parents_SetPosition(arg0,arg1,arg2) \
- (void) FW_OFileSink_parent_FW_ORandomAccessSink_SetPosition(arg0,arg1,arg2)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OFileSink_Class_Source) || defined(SOM_Module_slfileac_Source))
-
- /*
- * -- The FW_OFileSink ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OFileSinkClassData
- #endif
-
-
- /*
- * -- The FW_OFileSink Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OFileSinkClassAncestors [] = {
- (somClassDataStructure*) & FW_ORandomAccessSinkClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- (somClassDataStructure*) & FW_OSinkClassData, /* ancestor */
- };
-
-
- /*
- * -- The FW_OFileSink Override ProcPtr Implementations Table
- */
- static somMethodPtr FW_OFileSinkOverrideProcs [] = {
- (somMethodPtr) FW_OFileSink__GetLength, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OFileSink__SetLength, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OFileSink__GetPosition, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OFileSink__SetPosition, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OFileSink__somInit, /* override class SOMObject */
- (somMethodPtr) FW_OFileSink__somUninit, /* override class SOMObject */
- (somMethodPtr) FW_OFileSink__Read, /* override class FW_OSink */
- (somMethodPtr) FW_OFileSink__GetWritableBytes, /* override class FW_OSink */
- (somMethodPtr) FW_OFileSink__Write, /* override class FW_OSink */
- };
-
-
- static void FW_OFileSinkDLLD ( void ) { }
-
-
- /*
- * -- The FW_OFileSink Static Class Info Master Table
- */
- static somStaticClassInfo FW_OFileSinkSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OFileSinkClassData, /* main token table */
- FW_OFileSinkOverrideProcs, /* override proc implemenations table */
- FW_OFileSinkClassAncestors, /* ancestor table */
- FW_OFileSinkDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OFileSink Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x02" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x03" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OFileSink", /* the class name */
- sizeof (FW_OFileSinkData), /* class instance data size */
-
- /*
- * -- The FW_OFileSink Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OFileSink Token Slot Usage Table
- */
- (somSlotUsage *)
- "",
-
-
- /*
- * -- The FW_OFileSink Method Signature Info
- */
- (somSignatureInfo *)
- "\x03\x07" /* InitFromOFile */
- "\x02\x0c" /* GetOFileRep */
- ,
-
-
- /*
- * -- The FW_OFileSink Class Method Names
- */
- "InitFromOFile\0"
- "GetOFileRep\0"
- ,
-
-
- /*
- * -- The FW_OFileSink Override Slots Table
- */
- (somOverrideData *)
- "\x00\x00\x00\x04" /* parent FW_ORandomAccessSink has 4 overrides */
- "\x00\x00" /* GetLength */
- "\x00\x01" /* SetLength */
- "\x00\x02" /* GetPosition */
- "\x00\x03" /* SetPosition */
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- "\x00\x02\x00\x03" /* parent FW_OSink has 3 overrides */
- "\x00\x03" /* Read */
- "\x00\x04" /* GetWritableBytes */
- "\x00\x05" /* Write */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OFileSink ClassData Structure
- */
- struct FW_OFileSinkClassDataStructure SOMDLINK FW_OFileSinkClassData = {
- 0, /* zero */
- & FW_OFileSinkSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) FW_OFileSink__InitFromOFile, /* InitFromOFile:method */
- (somMToken) FW_OFileSink__GetOFileRep, /* GetOFileRep:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OFileSink_xih */
-